<?php
include ("../model/connect.php");
include ("../model/Faculty/Faculty_class.php");


$gradeid = $_POST['gradeid'];
$finalgrade = $_POST['finalgrade'];
$semester = $_POST['semester'];
$page = $_POST['page'];

$faculty = new Faculty();
    $faculty->editGrade($gradeid,$finalgrade,$semester);
    mysql_close($conn);
    header("location:http:/educational/faculty-index.php?p=faculty-add-grade&page={$page}");
?>